﻿namespace RFIDStation.DeviceDriver.IModules
{
    public interface IModule
    {
        /// <summary>
        /// 启动
        /// </summary>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task StartAsync( CancellationToken cancellationToken );

        /// <summary>
        /// 停止
        /// </summary>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task StopAsync( CancellationToken cancellationToken );
    }
}
